<?php


namespace app\unify\model;


/**
 * 用户记录表
 * @package app\system_user\model
 */
class UserLog extends Base
{
    public function getUserNameAttr($value, $data){
        return User::where('id', '=', $data['user_id'])->value('username');
    }

}
